package top.pmwly.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author Herther
 * @version 1.0.0
 * @ClassName MybatisPlusConfig.java
 * @Description mybatis插件
 * @createTime 2021年09月21日 15:36:00
 */
@Configuration
@EnableTransactionManagement
public class MybatisPlusConfig {
    /**
     * 启用mybatis-plus 分页
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}
